package com.systemic.service;

import com.systemic.pojo.Dynamic;
import com.systemic.pojo.Subject;
import com.systemic.pojo.SubjectFollower;
import com.systemic.vo.PageVo;

import java.util.List;

/**
 * @ClassName: SubjectService
 * @Description:
 * @Author:
 * @CreateTime: 2024-01-18 09:48
 * @Version:
 **/
public interface SubjectService {

    /**
     * 创建话题
     * @param subject
     * @return
     */
    int create(Subject subject);


    /**
     * 删除话题
     * @param ids
     * @return
     */
    int deleteList(Integer[] ids);

    /**
     * 查询话题
     * @param sname
     * @return
     */
    List<Subject> selectByName(String sname);

    /**
     * 关注话题
     * @param subjectFollower
     * @return
     */
    int follow(SubjectFollower subjectFollower);

    /**
     * 取消关注话题
     * @param subjectFollower
     * @return
     */
    int unfollow(SubjectFollower subjectFollower);

    /**
     *
     * @param pageVo
     * @return
     */
    List<Dynamic> dynamic(PageVo pageVo);
}
